/*
 * @Description: 
 * @Author: shuliang
 * @Date: 2022-05-06 10:26:08
 * @LastEditTime: 2022-05-11 15:10:25
 * @LastEditors: shuliang
 */
import { MockMethod } from 'vite-plugin-mock';

export default [
  {
    url: '/api/auth/menu',
    timeout: 100,
    method: 'get',
    response: ({ query }: any) => {
      return {
        "code": 0,
        "type": "adminMenu",
        "data": [
          {
            "path": "/home",
            "name": "home",
            "component": "home/index",
            "meta": {
              "title": "首页",
              "isLink": "",
              "isHide": false,
              "isKeepAlive": true,
              "isAffix": true,
              "isIframe": false,
              "icon": "iconfont icon-shouye"
            }
          },
          {
            "path": "/system",
            "name": "system",
            "component": "layout/routerView/parent",
            "redirect": "/system/menu",
            "meta": {
              "title": "系统管理",
              "isLink": "",
              "isHide": false,
              "isKeepAlive": true,
              "isAffix": false,
              "isIframe": false,
              "icon": "iconfont icon-xitongshezhi"
            },
            "children": [
              {
                "path": "/system/menu",
                "name": "systemMenu",
                "component": "system/menu/index",
                "meta": {
                  "title": "菜单管理",
                  "isLink": "",
                  "isHide": false,
                  "isKeepAlive": true,
                  "isAffix": false,
                  "isIframe": false,
                  "icon": "iconfont icon-caidan"
                }
              },
              {
                "path": "/system/user",
                "name": "systemUser",
                "component": "system/user/index",
                "meta": {
                  "title": "用户管理",
                  "isLink": "",
                  "isHide": false,
                  "isKeepAlive": true,
                  "isAffix": false,
                  "isIframe": false,
                  "icon": "iconfont icon-icon-"
                }
              },
              {
                "path": "/system/dept",
                "name": "systemDept",
                "component": "system/dept/index",
                "meta": {
                  "title": "部门管理",
                  "isLink": "",
                  "isHide": false,
                  "isKeepAlive": true,
                  "isAffix": false,
                  "isIframe": false,
                  "icon": "iconfont icon-icon-"
                }
              },
              {
                "path": "/system/dic",
                "name": "systemDic",
                "component": "system/dic/index",
                "meta": {
                  "title": "字典管理",
                  "isLink": "",
                  "isHide": false,
                  "isKeepAlive": true,
                  "isAffix": false,
                  "isIframe": false,
                  "icon": "iconfont icon-icon-"
                }
              },
              {
                "path": "/system/role",
                "name": "systemRole",
                "component": "system/role/index",
                "meta": {
                  "title": "角色管理",
                  "isLink": "",
                  "isHide": false,
                  "isKeepAlive": true,
                  "isAffix": false,
                  "isIframe": false,
                  "icon": "iconfont icon-icon-"
                }
              }
            ]
          },
          {
            "path": "/link",
            "name": "layoutLinkView",
            "component": "layout/routerView/link",
            "meta": {
              "title": "外链",
              "isLink": "https://element-plus.gitee.io/#/zh-CN/component/installation",
              "isHide": false,
              "isKeepAlive": false,
              "isAffix": false,
              "isIframe": false,
              "roles": ["admin"],
              "icon": "iconfont icon-caozuo-wailian"
            }
          },
          {
            "path": "/iframes",
            "name": "layoutIfameView",
            "component": "layout/routerView/iframe",
            "meta": {
              "title": "内嵌iframe",
              "isLink": "https://gitee.com/sl19940902/vue-robust-admin",
              "isHide": false,
              "isKeepAlive": true,
              "isAffix": false,
              "isIframe": true,
              "roles": ["admin"],
              "icon": "iconfont icon-neiqianshujuchucun"
            }
          }
        ]
      }
    },
  },
] as MockMethod[];
